package com.jyx.order.client;

import com.jyx.framework.clinet.JyxServiceList;
import com.jyx.framework.domain.course.CourseBase;
import com.jyx.framework.domain.course.CourseMarket;
import com.jyx.framework.domain.course.CoursePic;
import com.jyx.framework.domain.course.CoursePub;
import com.jyx.framework.domain.course.ext.TeachplanNode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = JyxServiceList.JYX_SERVICE_MANAGE_COURSE)
public interface CoursePubClient {
    @GetMapping("/course/coursepub/get/{id}")
    CoursePub getCoursePubById(@PathVariable("id") String courseId);

    @GetMapping("/course/courseMarket/query/{id}")
    CourseMarket getCourseMarketById(@PathVariable("id") String id);

    @GetMapping("/course/coursebase/query/{id}")
    CourseBase queryCourseBaseById(@PathVariable String id);

    @GetMapping("/course/teachplan/list/{courseId}")
    TeachplanNode findTeachplanList(@PathVariable String courseId);

    @GetMapping("/course/coursepic/list/{id}")
    CoursePic findCoursePic(@PathVariable("id") String courseId);
}
